package com.data.modules.online.cgform.model;

import com.data.modules.online.cgform.util.CgformUtil;

public class OnlColumn {
    private String align;
    private String customRender;
    private String dataIndex;
    private String hrefSlotName;
    private String linkField;
    private ScopedSlots scopedSlots;
    private int showLength;
    private boolean sorter;
    private String tableName;
    private String title;


    public boolean canEqual(Object other) {
        return other instanceof OnlColumn;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlColumn)) {
            return false;
        }
        OnlColumn onlColumn = (OnlColumn) o;
        if (!onlColumn.canEqual(this)) {
            return false;
        }
        if (getShowLength() != onlColumn.getShowLength()) {
            return false;
        }
        if (isSorter() != onlColumn.isSorter()) {
            return false;
        }
        String title2 = getTitle();
        String title3 = onlColumn.getTitle();
        if (title2 != null ? !title2.equals(title3) : title3 != null) {
            return false;
        }
        String dataIndex2 = getDataIndex();
        String dataIndex3 = onlColumn.getDataIndex();
        if (dataIndex2 != null ? !dataIndex2.equals(dataIndex3) : dataIndex3 != null) {
            return false;
        }
        String align2 = getAlign();
        String align3 = onlColumn.getAlign();
        if (align2 != null ? !align2.equals(align3) : align3 != null) {
            return false;
        }
        String customRender2 = getCustomRender();
        String customRender3 = onlColumn.getCustomRender();
        if (customRender2 != null ? !customRender2.equals(customRender3) : customRender3 != null) {
            return false;
        }
        ScopedSlots scopedSlots2 = getScopedSlots();
        ScopedSlots scopedSlots3 = onlColumn.getScopedSlots();
        if (scopedSlots2 != null ? !scopedSlots2.equals(scopedSlots3) : scopedSlots3 != null) {
            return false;
        }
        String hrefSlotName2 = getHrefSlotName();
        String hrefSlotName3 = onlColumn.getHrefSlotName();
        if (hrefSlotName2 != null ? !hrefSlotName2.equals(hrefSlotName3) : hrefSlotName3 != null) {
            return false;
        }
        String linkField2 = getLinkField();
        String linkField3 = onlColumn.getLinkField();
        if (linkField2 != null ? !linkField2.equals(linkField3) : linkField3 != null) {
            return false;
        }
        String tableName2 = getTableName();
        String tableName3 = onlColumn.getTableName();
        if (tableName2 == null) {
            if (tableName3 == null) {
                return true;
            }
        } else if (tableName2.equals(tableName3)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        int showLength2 = (isSorter() ? 79 : 97) + ((getShowLength() + 59) * 59);
        String title2 = getTitle();
        int i2 = showLength2 * 59;
        int hashCode = title2 == null ? 43 : title2.hashCode();
        String dataIndex2 = getDataIndex();
        int i3 = (hashCode + i2) * 59;
        int hashCode2 = dataIndex2 == null ? 43 : dataIndex2.hashCode();
        String align2 = getAlign();
        int i4 = (hashCode2 + i3) * 59;
        int hashCode3 = align2 == null ? 43 : align2.hashCode();
        String customRender2 = getCustomRender();
        int i5 = (hashCode3 + i4) * 59;
        int hashCode4 = customRender2 == null ? 43 : customRender2.hashCode();
        ScopedSlots scopedSlots2 = getScopedSlots();
        int i6 = (hashCode4 + i5) * 59;
        int hashCode5 = scopedSlots2 == null ? 43 : scopedSlots2.hashCode();
        String hrefSlotName2 = getHrefSlotName();
        int i7 = (hashCode5 + i6) * 59;
        int hashCode6 = hrefSlotName2 == null ? 43 : hrefSlotName2.hashCode();
        String linkField2 = getLinkField();
        int i8 = (hashCode6 + i7) * 59;
        int hashCode7 = linkField2 == null ? 43 : linkField2.hashCode();
        String tableName2 = getTableName();
        int i9 = (hashCode7 + i8) * 59;
        if (tableName2 != null) {
            i = tableName2.hashCode();
        }
        return i9 + i;
    }

    public void setAlign(String align2) {
        this.align = align2;
    }

    public void setCustomRender(String customRender2) {
        this.customRender = customRender2;
    }

    public void setDataIndex(String dataIndex2) {
        this.dataIndex = dataIndex2;
    }

    public void setHrefSlotName(String hrefSlotName2) {
        this.hrefSlotName = hrefSlotName2;
    }

    public void setLinkField(String linkField2) {
        this.linkField = linkField2;
    }

    public void setScopedSlots(ScopedSlots scopedSlots2) {
        this.scopedSlots = scopedSlots2;
    }

    public void setShowLength(int showLength2) {
        this.showLength = showLength2;
    }

    public void setSorter(boolean sorter2) {
        this.sorter = sorter2;
    }

    public void setTableName(String tableName2) {
        this.tableName = tableName2;
    }

    public void setTitle(String title2) {
        this.title = title2;
    }

    public String toString() {
        return "OnlColumn(title=" + getTitle() + ", dataIndex=" + getDataIndex() + ", align=" + getAlign() + ", customRender=" + getCustomRender() + ", scopedSlots=" + getScopedSlots() + ", hrefSlotName=" + getHrefSlotName() + ", showLength=" + getShowLength() + ", sorter=" + isSorter() + ", linkField=" + getLinkField() + ", tableName=" + getTableName() + ")";
    }

    public String getTitle() {
        return this.title;
    }

    public String getDataIndex() {
        return this.dataIndex;
    }

    public String getAlign() {
        return this.align;
    }

    public String getCustomRender() {
        return this.customRender;
    }

    public ScopedSlots getScopedSlots() {
        return this.scopedSlots;
    }

    public String getHrefSlotName() {
        return this.hrefSlotName;
    }

    public int getShowLength() {
        return this.showLength;
    }

    public boolean isSorter() {
        return this.sorter;
    }

    public String getLinkField() {
        return this.linkField;
    }

    public String getTableName() {
        return this.tableName;
    }

    public OnlColumn() {
        this.sorter = false;
    }

    public OnlColumn(String title2, String dataIndex2) {
        this.sorter = false;
        this.align = CgformUtil.f256aC;
        this.title = title2;
        this.dataIndex = dataIndex2;
    }
}
